<!--
  ~ The MIT License (MIT)
  ~
  ~ Copyright (c) 2019 ‭‭‭‭‭‭‭‭‭‭‭‭[smallbun] www.smallbun.org
  ~
  ~ Permission is hereby granted, free of charge, to any person obtaining a copy of
  ~ this software and associated documentation files (the "Software"), to deal in
  ~ the Software without restriction, including without limitation the rights to
  ~ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  ~ the Software, and to permit persons to whom the Software is furnished to do so,
  ~ subject to the following conditions:
  ~
  ~ The above copyright notice and this permission notice shall be included in all
  ~ copies or substantial portions of the Software.
  ~
  ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  ~ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  ~ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  ~ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  ~ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  -->

<!DOCTYPE HTML>
<!--suppress ALL-->
<html lang="zh-cn"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:include="fragments/include  :: header('添加字典类型')"></div>
</head>
<body>
<div class="i-ibox">
    <div class="ibox-content">
        <form id="form" class="form-horizontal" th:action="@{/dict/type/saveOrUpdate}" th:object="${dictType}"
              method="post">
            <!--隐藏域ID-->
            <input id="id" name="id" type="hidden" th:field="*{id}">
            <!--类型编码(修改验证重复)-->
            <input th:value="*{typeCode}" id="onlyTypeCode" class="hidden">
            <h4 class="page-header h4">基本信息</h4>
            <div class="row">
                <div class="col-xs-12">
                    <div class="form-group">
                        <label class="col-xs-3 control-label" for="typeName"><span
                                style="color: red;">*</span>类型名称：</label>
                        <div class="col-xs-8">
                            <div class="input-group" style="width: 100%">
                                <input id="typeName" placeholder="请输入类型名称" name="typeName"
                                       class="form-control required" th:field="*{typeName}"
                                       type="text" required autocomplete="off">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="form-group">
                        <label class="col-xs-3 control-label" for="typeCode"><span
                                style="color: red; ">*</span>字典类型：</label>
                        <div class="col-xs-8">
                            <div class="input-group" style="width: 100%">
                                <input id="typeCode" placeholder="请输入字典类型" name="typeCode"
                                       th:field="*{typeCode}"
                                       class="form-control " required
                                       type="text" title="请输入字典类型" autocomplete="off">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="form-group">
                        <label class="col-xs-3 control-label">备注信息：</label>
                        <div class="col-xs-8">
                            <div class="input-group" style="width: 100%">
                                <textarea class="form-control" placeholder="请输入备注信息"
                                          type="text" rows="3" name="remarks" id="remarks"
                                          maxlength="50" aria-required="true" th:field="*{remarks}"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<div th:include="fragments/include :: include-js"></div>
<div th:include="fragments/include :: jquery-validate-js"></div>
<script th:src="@{/static/modules/manage/js/dict/dict_type_form.js}"></script>
</html>